﻿using System;
using System.ComponentModel.Composition;
using System.Linq;
using System.Linq.Expressions;
using ASPItalia.ModelVirtualCasting.Common;
using ASPItalia.ModelVirtualCasting.ObjectModel;
using ASPItalia.ModelVirtualCasting.Parts;

namespace ASPItalia.ModelVirtualCasting.Fake
{
    [Export("PersonRepository", typeof(IPersonRepository))]
    [PartCreationPolicy(CreationPolicy.NonShared)]
    [RepositoryMetadata(Name = "PersonRepository", IsFake = true)]
    public class PersonRepository : BaseRepository<IPersonRepository>, IPersonRepository
    {
        public IQueryable<Person> GetAll()
        {
            return null;
        }

        public IQueryable<Person> Where(Expression<Func<Person, bool>> predicate)
        {
            return null;
        }

        public long Count(Expression<Func<Person, bool>> predicate)
        {
            return 0L;
        }

        public IPersonRepository EnableLazyLoading()
        {
            return this;
        }

        public IPersonRepository DisableLazyLoading()
        {
            return this;
        }

        public IPersonRepository Include(string path)
        {
            return this;
        }

				public IPersonRepository Include<TProperty>(Expression<Func<Person, TProperty>> path)
				{
					return this;
				}

				public IPersonRepository CreateQuery()
				{
					return this;
				}

				public IPersonRepository DoNotTrack()
				{
					return this;
				}
		}
}
